window.affirmPopWindow=(title,content,fun)=>{
    let body=document.body;
    let box=document.createElement("div");
    box.style.width="100vw";
    box.style.height="100vh";
    box.style.backgroundColor="#0008";
    box.style.position="absolute";
    box.style.top="0";
    box.style.left="0";
    body.appendChild(box);
    let pop=document.createElement("div");
    pop.style.width="400px";
    pop.style.height="260px";
    pop.style.marginTop="calc( 40vh - 130px )";
    pop.style.marginLeft="calc( 50vw - 200px )";
    pop.style.backgroundColor="#fff";
    pop.style.borderRadius="16px";
    pop.style.position="relative";
    box.appendChild(pop);
    let close=document.createElement("button");
    close.innerHTML="取&emsp;&emsp;消";
    close.style.backgroundColor="#F76E4D";
    close.style.color="#fff";
    close.style.borderRadius="8px";
    close.style.position="absolute";
    close.style.width="80px";
    close.style.height="30px";
    close.style.outline="0";
    close.style.border="0";
    close.style.left="220px";
    close.style.top="210px";
    close.onmouseenter=()=>{close.style.backgroundColor="#fa8a6f";}
    close.onmousedown=()=>{close.style.backgroundColor="#fa8a6f";}
    close.onmouseleave=()=>{close.style.backgroundColor="#F76E4D";}
    close.onclick=()=>{body.removeChild(box);}
    pop.appendChild(close);
    let affirm=document.createElement("button");
    affirm.innerHTML="确&emsp;&emsp;认";
    affirm.style.backgroundColor="#42CBA2";
    affirm.style.color="#fff";
    affirm.style.borderRadius="8px";
    affirm.style.position="absolute";
    affirm.style.width="80px";
    affirm.style.height="30px";
    affirm.style.outline="0";
    affirm.style.border="0";
    affirm.style.left="100px";
    affirm.style.top="210px";
    affirm.onmouseenter=()=>{affirm.style.backgroundColor="#64e8c1";}
    affirm.onmousedown=()=>{affirm.style.backgroundColor="#64e8c1";}
    affirm.onmouseleave=()=>{affirm.style.backgroundColor="#42CBA2";}
    affirm.onclick=()=>{fun();body.removeChild(box);}
    pop.appendChild(affirm);
    let t=document.createElement("p");
    t.innerHTML=title;
    t.style.fontWeight="900";
    t.style.margin="0";
    t.style.position="absolute"
    t.style.width="300px";
    t.style.height="30px";
    t.style.fontSize="24px";
    t.style.lineHeight="30px";
    t.style.textAlign="center";
    t.style.left="50px";
    t.style.top="20px";
    pop.appendChild(t);
    let c=document.createElement("p");
    c.innerHTML=content;
    c.style.margin="0";
    c.style.position="absolute"
    c.style.width="300px";
    c.style.fontSize="18px";
    c.style.lineHeight="24px";
    c.style.textAlign="center";
    c.style.left="50px";
    c.style.wordWrap="break-word";
    c.style.overflowWrap="break-word";
    c.style.whiteSpace="normal";
    pop.appendChild(c);
    c.style.top=(260-c.offsetHeight)/2+"px";
}